package basic50.thirtieth;

import java.util.Scanner;

public class Basic25 {
    public static void main(String[] args) {
      //  题目：一个5位数，判断它是不是回文数。即12321是回文数，个位与万位相同，十位与千位相同。
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int temp =n;
        int reverse = 0;
        while (temp != 0) {
            reverse = reverse*10 + temp%10;
            temp = temp/10;
        }
        if(reverse == n){
            System.out.println("YES");
        }else {
            System.out.println("NO");
        }
    }
}
